cmake_minimum_required(VERSION 2.8) 

add_compile_options(-std=c99)
set(CMAKE_SHARED_LINKER_FLAGS "-Wl --no-as-needed")

#查找该目录下的所有源文件，放入apriltag_src变量中
aux_source_directory(. apriltag_src) 

#查找common目录下所有源文件存入变量common_src中
aux_source_directory(common common_src) 


aux_source_directory(operate operate_src) 

#将指定源文件生成static库apriltag
add_library(apriltag STATIC ${common_src} ${apriltag_src} ${operate_src})

